package com.example.stream.demostream.service.impl;

import com.zhe.shiro.service.ShiroService;
import com.zhe.web.entity.UserContextInfo;
import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.Set;

/**
 * @ClassName ShiroServiceImpl
 * @Description TODO
 * @Author zhonghuaen
 * @Date 2021/10/2 19:08
 * @Version 1.0
 */
@Service
public class ShiroServiceImpl implements ShiroService {
    @Override
    public Set<String> getUserPermissions() {
        Set<String> objects = new HashSet<>();
        objects.add("admin");
        return objects;
    }

    @Override
    public Set<String> getUserRoles() {
        Set<String> objects = new HashSet<>();
        objects.add("admin");
        return objects;
    }

    @Override
    public UserContextInfo queryUser(Long aLong) {
        return null;
    }
}
